﻿package cn.lite3.notepaper.vo
{
	import cn.lite3.notepaper.view.NotepaperWindow;
	/**
	 * ...
	 * @author lite3
	 */
	public class NotepaperVo
	{
		public var x:Number;
		public var y:Number;
		public var subject:String;	// 标题
		public var content:String;	// 内容
		public var window:NotepaperWindow;	// 窗口
		
		public function NotepaperVo(window:NotepaperWindow, subject:String = "", content:String = "", x:Number = 0, y:Number = 0)
		{
			this.window = window;
			this.subject = subject;
			this.content = content;
			this.x = x;
			this.y = y;
		}
		
		public function toXML():XML
		{
			var xml:XML = new XML(<notepaper/>);
			xml.@subject = subject;
			xml.@content = content;
			xml.@x = x;
			xml.@y = y;
			return xml;
		}
	}

}